<div class="grid_15 sizedText">
	<?php if ('' != trim($this->msg)) {?>
	<div  class="helperText"><?php print($this->msg); ?></div>
	<?php } ?>
	<?php if ('' != trim($this->error)) {?>
	<div  class="systemErrorMessage"><?php print($this->error); ?></div>
	<?php } ?>
	<div class="grid_7 suffix_1">
		<div class="grid_7"><div class="grid_7 bordered appOptions shadowed_near">
		<h3>Edit Existing Status</h3>
		<form method="post" action="./?cmd=clearAudit">
			<label class="blockLabel bottomHalfMargin">
				<span class="labelTextLong">Audit Table:</span><select name="selectedTable" >
				<?php foreach($this->tableOptions as $option) { ?>
					<option value="<?php print($option); ?>"<?php  
						if($option == $this->selectedTable) {
							print(' selected="selected"');
						} ?>><?php print($option); ?></option>
				<?php } ?>
			</select>
			</label>
			<label class="blockLabel bottomHalfMargin">
				<span class="labelTextExtraLong">Clear records before:</span>
				<input type="text" name="clearDate" size="40" type="text" value="<?php print($this->clearDate); ?>" /></label>
				<script type="text/javascript">
					$( '[name="clearDate"]' ).datepicker({
			            showOn: "button",
			            buttonImage: "public/images/icons/calendar-month_sm.png",
			            buttonImageOnly: true,
			            defaultDate: '<?php print($this->defaultDate); ?>',
			            dateFormat: "yy-mm-dd",
			            constrainInput: false,
			            beforeShowDay : function(dateValue) {
							var lastValidDate = new Date('<?php print($this->defaultDate); ?>');
							if (lastValidDate <= dateValue) {
								return [false, '', 'Cannot clear values for this date.']
							} else {
								return [true];
							}
			            }
				    });
				</script>
			</label>
			<input type="submit" name="clearSelect" value="Clear Selected Table"/>
		</form>
		</div></div>
	</div>
</div>